<?php
namespace app\front\controller\v2;

use app\front\controller\v2\BaseController;
class PersonalCenterController extends BaseController
{
    public function PersonalCenter(){
        $UserMsg= $this->getPersionCenterService()->getUserMsg();
        if(!$UserMsg){
            return view('v2/NotMember');
        }else{
            $WithdrawMsg=$this->getPersionCenterService()->getWithdraw();
            $this->assign('WithdrawMsg',$WithdrawMsg);
            $RedPackMsg=$this->getPersionCenterService()->getRedPackMsg();
            $this->assign('nickname',$UserMsg['nickname']);
            $this->assign('id',$UserMsg['id']);
            $this->assign('headimgurl',$UserMsg['headimgurl']);
            $this->assign('money',$UserMsg['money']);
            $this->assign('allowMoney',floor($UserMsg['money']));
            $this->assign('RedPackMsg',$RedPackMsg);
            return view('v2/qianbao');
        }
    }
}

